<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST">
    <input type="hidden" name="row[scenario]" value="edit" />
    {if condition="!$shopId"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('选择门店')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[shop_id]', $shopList, $row['shop_id'], ['class'=>'form-control selectpicker'])}
        </div>
    </div>
    {else /}
    <input type="hidden" name="row[shop_ids]" value="{$shopId}">
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('编号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-number" class="form-control" type="text" name="row[number]" title="" value="{$row.number}" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-note" class="form-control" type="text" name="row[note]" title="" value="{$row.note|htmlentities}" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', $statusList, $row['status'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button class="btn btn-success btn-embossed disabled" type="submit">{:__('OK')}</button>
            <button class="btn btn-default btn-embossed" type="reset">{:__('Reset')}</button>
        </div>
    </div>
</form>